﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace V5_PhoneLibs.Core {
    public class AppHelper {
        private static readonly AppHelper m_Instance = new AppHelper();
        /// <summary>
        /// 
        /// </summary>
        public static AppHelper Instance {
            get { return m_Instance; }
        }
        /// <summary>
        /// 屏幕宽度
        /// </summary>
        public double ScreenWidth {
            get {
                return System.Windows.Application.Current.Host.Content.ActualWidth;
            }
        }
        /// <summary>
        /// 屏幕高度
        /// </summary>
        public double ScreenHeight {
            get {
                return System.Windows.Application.Current.Host.Content.ActualHeight;
            }
        }
    }
}
